package lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo1 {
    public static void main(String[] args) {
        FileFilter filter = new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().contains("F");
            }
        };
        FileFilter filter1 = (file) -> file.getName().contains("f");
        FileFilter filter2 = (file)-> file.getName().contains("E");
        FileFilter filter3 = f-> f.getName().contains("E");

        File dir = new File("./src/main/java/file");
        File[] subs = dir.listFiles(f->f.getName().contains("A"));
    }
}
